<?php
/**
 * Created by PhpStorm.
 * User: lee
 * Date: 2017/12/27
 * Time: 下午6:35
 */

namespace Biz\module\Classes\core;

abstract class SearchListAbstract
{
    protected $params;
    protected $limit;
    protected $where = [];
    protected $select = [];

    public function __construct($params, $limit)
    {
        $this->params = $params;
        $this->limit = $limit;

        $this->buildWhere();

        $this->buildSelect();
    }

    abstract protected function buildSelect();

    abstract protected function buildWhere();


    abstract public function getCount();


    abstract public function getList();

}